package com.lrs.java.designPattern.factory.simpleFactory;

public class Gardener {

	public static Fruit factory(String which) {
		if("apple".equals(which)) {
			return new Apple();
		} else if("grape".equals(which)) {
			return new Grape();
		}
		return null;
	}
}
